<?php defined('SYSPATH') or die('No direct script access.');

class Model_Dao_Report extends ORM{

	protected $_table_name  = 'reports'; // default: accounts
    protected $_primary_key = 'id';      // default: id
    protected $_primary_val = 'conclusion';      // default: name (column used as primary value)
    
    // default for $_table_columns: use db introspection to find columns and info
    // see http://v3.kohanaphp.com/guide/api/Database_MySQL#list_columns for all possible column attributes
    protected $_table_columns = array(
        'id'   => array('data_type' => 'int',    'is_nullable' => FALSE),
    	'comment_aod' => array('data_type' => 'string',    'is_nullable' => TRUE), 
        'comment_aos'  => array('data_type' => 'string', 'is_nullable' => TRUE),
    	'comment_iar' => array('data_type'=>'string', 'is_nullable' => TRUE),
    	'comments' =>  array('data_type'=>'string', 'is_nullable' => TRUE),
    	'conclusion' => array('data_type'=>'string', 'is_nullable' => TRUE),
    	'habits_Summary' => array('data_type'=>'string', 'is_nullable' => TRUE),
    	'background_family' => array('data_type'=>'string', 'is_nullable' => TRUE),
    	'background_medicines' => array('data_type'=>'string', 'is_nullable' => TRUE),
    	'background_pathologies' => array('data_type'=>'string', 'is_nullable' => TRUE),
    	'background_surgeries' => array('data_type'=>'string', 'is_nullable' => TRUE)
    );
}
?>